using System;
using System.Collections;

namespace Eshouse.Entity
{
	

	/// <summary>
	/// UpLoadPic object for NHibernate mapped table 'UpLoadPic'.
	/// </summary>
	public class UpLoadPic
	{
		#region Member Variables
		
		protected int _id;
		protected int _foreignID;
		protected string _picpath;
		protected DicTable _picCategory;

		#endregion

		#region Constructors

		public UpLoadPic() { }

		public UpLoadPic( int foreignID, string picpath, DicTable picCategory )
		{
			this._foreignID = foreignID;
			this._picpath = picpath;
			this._picCategory = picCategory;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public virtual  int ForeignID
		{
			get { return _foreignID; }
			set { _foreignID = value; }
		}

		public virtual  string Picpath
		{
			get { return _picpath; }
			set
			{
				if ( value != null && value.Length > 32)
					throw new ArgumentOutOfRangeException(" Invalid value for Picpath", value, value.ToString());
				_picpath = value;
			}
		}

		public virtual DicTable Pic_Category
		{
			get { return _picCategory; }
			set { _picCategory = value; }
		}

		

		#endregion
	}
	
}